package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.weball.vo.CategoryTreeVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.gmall.product.entity.BaseCategory1;
import com.atguigu.gmall.product.service.BaseCategory1Service;
import com.atguigu.gmall.product.mapper.BaseCategory1Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author weiranyi
* @description 针对表【base_category1(一级分类表)】的数据库操作Service实现
* @createDate 2022-11-29 16:41:28
*/
@Service
public class BaseCategory1ServiceImpl extends ServiceImpl<BaseCategory1Mapper, BaseCategory1>
    implements BaseCategory1Service{
    @Autowired
    BaseCategory1Mapper baseCategory1Mapper;

    @Override
    public List<CategoryTreeVo> getCategoryTreeData() {
        return baseCategory1Mapper.getCategoryTreeData();
    }

    @Override
    public CategoryTreeVo getCategoryTreeVoByC3Id(Long c3Id) {
        return baseCategory1Mapper.getCategoryTreeVoByC3Id(c3Id);
    }
}




